import { defineConfig } from 'umi';
import routes from './routes'
import defaultSetting from  './defaultSettings'
import proxy from "./proxy";
export default defineConfig({
  nodeModulesTransform: {
    type: 'none',
  },
  hash: true,
  title: defaultSetting.title,
  theme: {
    'primary-color': defaultSetting.primaryColor
  },
  history: {
    type: 'hash'
  },
  routes,
  fastRefresh: {},
  proxy: proxy['dev'], // 数组形式里面可以判断
  extraPostCSSPlugins: [require('tailwindcss'), require('autoprefixer')],
});
